You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TOpenCLVector Class > TOpenCLVector Methods > Reverse Method > TOpenCLVector.Reverse Method ([In] TOpenCLMtxVec)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TOpenCLVector.Reverse Method ([In] TOpenCLMtxVec)

Reverse all Vec elements.

Syntax
C#
Visual Basic
public TOpenCLVector Reverse([In] TOpenCLMtxVec Vec);

Store the result in the calling vector elements. The TOpenCLBase.LengthLength and TOpenCLBase.ComplexComplexroperties of the calling vector are set implicitly to match Vec vector. 

 

 

This overload reverses all vector elements.

var a: TOpenCLVector; begin CreateIt(a,b); try a.CopyFromArray(TSingleArray.Create(1,2,3,4)); b.Reverse(a); // b = [4,3,2,1] finally FreeIt(a,b); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!